﻿@model HawaiRestaurant.Models.DataContext.Customer

@{
    ViewBag.Title = "EditCustomer";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Edit Customer</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"> </script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"> </script>


@using (Html.BeginForm("EditCustomer", "Admin", FormMethod.Post, new {@class = "niceform"}))
{
    @Html.ValidationSummary(true)
    <fieldset>
        @Html.HiddenFor(model => model.CustomerId)
        <dl >
            <dt>
                <label for="name">Customer Name:</label>
            </dt>
            <dd>
            
                @Html.EditorFor(model => model.Name)

                @Html.ValidationMessageFor(model => model.Name)
            </dd>
        </dl>
        <dl >
            <dt>
                <label for="name">Customer Address:</label>
            </dt>
            <dd>
            
                @Html.EditorFor(model => model.CustomerAddress)
                @Html.ValidationMessageFor(model => model.CustomerAddress)
            </dd>
        </dl>
           
        <dl >
            <dt>
                <label for="name">Customer Phone :</label>
            </dt>
            <dd>

                @Html.EditorFor(model => model.CustomerAddress)
                @Html.ValidationMessageFor(model => model.CustomerAddress)
            </dd>
        </dl>
           
            
        <dl >
            <dt>
                <label for="name">Customer FAX :</label>
            </dt>
            <dd>

            
                @Html.EditorFor(model => model.CustomerFax)
                @Html.ValidationMessageFor(model => model.CustomerFax)
 
            </dd>
        </dl>
              
        <dl >
            <dt>
                <label for="name">Customer Account :</label>
            </dt>
            <dd>

            
                @Html.EditorFor(model => model.CustomerAccount)
                @Html.ValidationMessageFor(model => model.CustomerAccount)
 
            </dd>
        </dl>
         
        
        
        <dl >
            <dt>
                <label for="name">Position :</label>
            </dt>
            <dd>

            
                @Html.EditorFor(model => model.PositionId)
                @Html.ValidationMessageFor(model => model.PositionId)
 
            </dd>
        </dl>
        
        
        
        <dl >
            <dt>
                <label for="name">OrganizationName :</label>
            </dt>
            <dd>

            
                @Html.EditorFor(model => model.OrganizationName)
                @Html.ValidationMessageFor(model => model.OrganizationName)
 
            </dd>
        </dl>
        
        
        <dl >
            <dt>
                <label for="name">Organization Address :</label>
            </dt>
            <dd>

                @Html.EditorFor(model => model.OrganizationAddress)
                @Html.ValidationMessageFor(model => model.OrganizationAddress)
            </dd>
        </dl>

        <dl class="submit" style="margin-left: -50px">
            <dd>
                <input id="submit" class="NFButton" type="submit" value="Submit" name="submit"> 
            </dd>
        </dl>
    </fieldset>
}


<div>
    @Html.ActionLink("Back to List", "ListCustomer")
</div>